<?php
require 'execute/auth.php';
require 'config/config.php';

mydb_connect();
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html lang="en" class="ie6 ielt7 ielt8 ielt9"><![endif]--><!--[if IE 7 ]><html lang="en" class="ie7 ielt8 ielt9"><![endif]--><!--[if IE 8 ]><html lang="en" class="ie8 ielt9"><![endif]--><!--[if IE 9 ]><html lang="en" class="ie9"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!--> 
<html lang="en"><!--<![endif]--> 
	
<!-- Mirrored from wbpreview.com/previews/WB0070A9H/index.htm by HTTrack Website Copier/3.x [XR&CO'2013], Wed, 22 Jan 2014 10:30:52 GMT -->
<head>
		<meta charset="utf-8">
		<title>Dashboard - TechAfghanistan</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link href="css/bootstrap.min.css" rel="stylesheet">
		<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
		<link href="css/site.css" rel="stylesheet">
		<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">

		<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
	</head>
	<body>
		<div class="container">
			<div class="navbar">
				<div class="navbar-inner">
				<div class="container">
						<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="brand" href="#">TechAfghanistan</a>
						<div class="nav-collapse">
							<ul class="nav">
									
							</ul>
							<form class="navbar-search pull-right" action="#">
								<input type="text" class="search-query span2" placeholder="Search" />
							</form>
							<?php 
							$user = $conn->query("SELECT * FROM `users` WHERE id = '".$_SESSION['ADMIN_USER_ID']."'");
							$userRow = $user->fetch();
							?>
							<ul class="nav pull-right">
								<li>
									<a href="#"><i class="fa fa-user"> Welcome, <?php echo $userRow['firstname']; ?></i></a>
								</li>
								<li>
									<a href="execute/logout.php"><i class="fa fa-sign-out"> Logout</i></a>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>